package org.op.editor;

public interface OpenCloseController {

	/**
	 * Brings up a file chooser to open up a new document
	 * 
	 */
	public void openDocument();
	
	/**
	 * Close the current document in the editor
	 */
	public void closeDocument();
	
	/**
	 * Creates a new (unsaved and unnamed) editor in the panel
	 */
	public void newDocument();
	
	/**
	 *  If the given word is a wikiword (exists in the alias file), then open the referenced document
	 * 
	 * @param wikiword
	 */
	public void openWikiwordDocument(String wikiword);

	/**
	 *   Close all editors in the editor tab panel
	 *     (if any are dirty, confirm)
	 */
	public void closeAllDocuments();
	
	/**
	 *  Close all documents and exit, if requested
	 * 
	 */
	public void exitApplication();
	
}
